Hacking For Beginners – Manthan Desai
2010
After you get PowerShell installed, we just investigated that you need to enable scripts to run. With the Execution Policyset at Restricted as a default, you need to configure every computer to run scripts, that will run scripts. This could takedays if you are trying to do this manually.
However, you can also use Group Policy to get this done for you. Of course, you could create your own AdministrativeTemplate (ADM file) to make this change, or download the ADM template that Microsoft provides for you. I suggest youdo the latter by downloading the ADM template.
After downloading, you will need to install the MSI. I will admit, it is not the cleanest or most efficient install. Afterinstallation, the ADM file is shoved under the C:\program files\Microsoft Group Policy folder. If nothing else, this is greatsecurity! The file you need to import into the Group Policy Object Editor is Power Shell Extension Policy. ADM Afterimporting, you will have two new nodes in your Group Policy Object. One will be at ComputerConfiguration\Administrative Templates\Windows Components\Windows PowerShell and the other at UserConfiguration\Administrative Templates\Windows Components\Windows PowerShell, as shown in Figure 5.
Figure 5: PowerShell ADM template adds settings to Computer Configuration and User Configuration for script execution
When you go to configure this policy, you will see that you have three options for a setting, as shown in Figure 6.
www.hackingtech.co.tv
Page 214